package day03;

public class Work01 {
    public static void main(String[] args) {
       // 练习2
        int asal=4500;
        int bsal=5500;
        System.out.println("a员工"+asal+"元工资需要交所得税这个事是" + (asal>5000));
        System.out.println("b员工"+bsal+"元工资需要交所得税这个事是" + (bsal>5000));

        // 练习 1
        // 圆柱体积 = S底 * 高
        // s底= π r^2
        double r = 10;
        double h = 3;
        double pi = 3.14;
        double v = pi * r/2 * r/2 *h;
        double m=v*750;
        System.out.println("该仓库可以存储"+m+"kg的粮食");

        // 练习4 7
        //System.out.println("ABCDEFG");
        char a='A';
        char b='B';
        char c='C';
        char d='D';
        char e='E';
        char f='F';
        char g='G';
        System.out.println(a+" "+b+" "+c+" "+d+" "+e+" "+f+" "+g);// 字符串拼接
        System.out.print(a+b+c+d+e+f+g);// 字符数学运算



       // 练习 3
      /*  char g='g';
        int i=103;
        System.out.println(g==i);*/
        //boolean b1= 'g' == 103;
       // System.out.println('g' == 103);
        //System.out.println(b1);
    }
}
